Skip to main content

All Questions

1vote
1answer
2kviews

if else statement: check if a path stored in a variable exists [closed]

I have problems with an if statement in my script. I have stored a path in a variable and want to use the if...else statement to check if the file (file1) in the path of the variable exists or not. ...
Buggy's user avatar
3votes
1answer
2kviews

read path name with spaces then use the variable into find command

I need to ask the user to provide a path name (which will here have a space) to launch a find command: read -r -e -p "Folder:" folder Folder :/mnt/My\ folderX/ echo $folder gives: My\ folderX/ But.. ...
Vinh Francis Guyait's user avatar

close